<?php
/**
 * 首页控制器
 * @author:zhulin
 * @since:2012 5.24
 */
class IndexController  extends BaseController{
    /**
     * 首页显示
     */
    public function run(){
            include TPL_DIR.'index.php';
            
    }
    /**
     * 登录页面的显示
     */
    public function register(){
         
         include TPL_DIR.'register.php';
        
    }
    /**
     * 会员中心页z面显示
     */
    public function member(){
        if( $_SESSION['uId']){
            include TPL_DIR.'member.php';
        }
       
        
    }
    /**
     * 会员密码修改
     */
    public function alter(){
         include TPL_DIR.'changePasswd.php';
        
    }
    /**
     * 会员资料修改
     */
    public function change(){
        //为用户赋值
        $userInfo = User_Info::getUserInfoByUId( $_SESSION['uId'] );
        include TPL_DIR.'changeData.php';
    }
    
}